package sql;



import java.sql.Connection;

public abstract class AConnection {
	private static DBConnectionPool connectionPool;

	public static Connection getConnection() {
		return connectionPool.getConnection();
	}

	protected  void freeConnection(Connection connection) {
		connectionPool.freeConnection(connection);
	}

	public static void initConnectionPool() {
		connectionPool = DBConnectionPool.getInstance();
	}
       
}
